<template>
  <div class="common-layout">
    <el-container>
      <Aside />
      <el-container>
        <el-header>
          <Header />
          <Tab />
        </el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import { defineComponent } from "vue";
import Header from "../components/Header.vue";
import Aside from "../components/Aside.vue";
import Tab from "../components/Tab.vue";
export default defineComponent({
  components: {
    Header,
    Aside,
    Tab,
  },
});
</script>

<style scoped>
.common-layout {
  height: 100%;
}
.el-container {
  height: 100%;
}
.el-aside {
  height: 100%;
  background: white;
  border-right: 1px solid #eee;
}
.el-main {
  margin-top: 40px;
}
</style>
